package cn.easyutil.project.web.advice;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;
import java.util.Map;

public interface RequestBeforeAdvice {

    /**
     * 接口访问前的拦截
     * @param request
     * @param response
     * @param controllerMethod  接口层
     * @param controllerClass   接口方法
     * @return  true-继续执行接口方法  false-不处理
     */
    public boolean process(HttpServletRequest request, HttpServletResponse response, Method controllerMethod,Class<?> controllerClass);
}
